package org.excilys.training.ebanking.service;

import org.excilys.training.ebanking.idao.IDaoTypeOperation;
import org.excilys.training.ebanking.iservice.IServiceTypeOperation;
import org.excilys.training.ebanking.model.TypeOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ServiceTypeOperation implements IServiceTypeOperation {

	@Autowired
	private IDaoTypeOperation daoTypeOperation;


	public void setDaoTypeOperation(IDaoTypeOperation daoTypeOperation) {
		this.daoTypeOperation = daoTypeOperation;
	}


	@Override
	public TypeOperation getTypeOperation(int idTypeOperation) {

		return daoTypeOperation.getTypeOperation(idTypeOperation);
	}

}
